package semana3.strings.ejemplos.ej08;

import java.util.Scanner;

public class Cadenas {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		System.out.print("Introduce una frase: ");
		String frase = scan.nextLine();
		System.out.println("Tu frase es: " + frase);

		String fraseMayuscula = frase.toUpperCase();
		System.out.println("En mayuscula: " + fraseMayuscula);

		String fraseMinus = frase.toLowerCase();
		System.out.println("En minuscula: " + fraseMinus);

		System.out.println("La longitud (con espacios) es de " + frase.length()
				+ " caracteres");

		for (int i = 0; i < frase.length(); i++) {
			System.out.println(frase.charAt(i));
		}

	}

}
